import Vue from 'vue'
import Vuex from 'vuex'
import axios from 'axios'
import user from './user/index.js'
import book from './book/index.js'

axios.defaults.baseURL = 'http://localhost/api.php';
//axios.defaults.headers.common['Authorization'] = AUTH_TOKEN;//修改密码
//axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';//POST请求必须加

Vue.use(Vuex)

const store = new Vuex.Store({
    modules: {
        user,
        book
    }
});
export default store
